package com.wzt.gift.client;

import com.wzt.gift.fallback.SmsVcSendFallbackFactory;
import com.wzt.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author Zenith
 * @Date 2022/10/12 19:09
 * @Version 1.0
 */
@FeignClient(value = "GIFT-CORPORATE", fallbackFactory = SmsVcSendFallbackFactory.class)
public interface SmsVerifyCodeSendClient {
    /**
     * 发送短信验证码
     *
     * @param phone
     * @return
     */
    @PostMapping ("/sms/send")
    String sendVerifyCode(String phone);
}
